package io.datajek.springbasics.movierecommendersystem.lesson9;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class Movie {
    public static int instance=0;
    private String name;
    private String genre;
    private  String producer;

    public Movie() {
        super();
        instance++;
        System.out.println("Movie constructor called");
    }
    public static int getInstance(){
        return instance;
    }
}




